package com.ztesoft.web.common.db.arg;

import java.util.*;
import java.math.*;
import org.apache.commons.lang.*;

public class DmFuncDefineArg {
    private String pk_name = "FUNC_ID";

    private String orderByClause;

    private String groupByClause;

    private String columns;

    private String countsql1;

    private String countsql2;

    private boolean distinct;

    private int rowStart = 0;

    private int rowEnd = 10;

    private List<DmFuncDefineCriteria> oredCriteria;

    public DmFuncDefineArg() {
        oredCriteria = new ArrayList<DmFuncDefineCriteria>();
    }

    public void setPk_name(String pk_name) {
        this.pk_name = StringEscapeUtils.escapeSql(pk_name);
    }

    public String getPk_name() {
        return pk_name;
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = StringEscapeUtils.escapeSql(orderByClause);
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setGroupByClause(String groupByClause) {
        this.groupByClause = StringEscapeUtils.escapeSql(groupByClause);
    }

    public String geGroupByClause() {
        return groupByClause;
    }

    public void setColumns(String columns) {
        this.columns = StringEscapeUtils.escapeSql(columns);
    }

    public String geColumns() {
        return columns;
    }

    public void setCountsql1(String countsql1) {
        this.countsql1 = StringEscapeUtils.escapeSql(countsql1);
    }

    public String geCountsql1() {
        return countsql1;
    }

    public void setCountsql2(String countsql2) {
        this.countsql2 = StringEscapeUtils.escapeSql(countsql2);
    }

    public String geCountsql2() {
        return countsql2;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public void setRowStart(int rowStart) {
        this.rowStart = rowStart;
    }

    public void setRowEnd(int rowEnd) {
        this.rowEnd = rowEnd;
    }

    public int getRowStart() {
        return rowStart;
    }

    public int getRowEnd() {
        return rowEnd;
    }

    public List<DmFuncDefineCriteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(DmFuncDefineCriteria criteria) {
        oredCriteria.add(criteria);
    }

    public DmFuncDefineCriteria or() {
    	DmFuncDefineCriteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public DmFuncDefineCriteria createCriteria() {
    	DmFuncDefineCriteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected DmFuncDefineCriteria createCriteriaInternal() {
    	DmFuncDefineCriteria criteria = new DmFuncDefineCriteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        groupByClause = null;
        columns = null;
        countsql1 = null;
        countsql2 = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<DmFuncDefineCriterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<DmFuncDefineCriterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<DmFuncDefineCriterion> getAllCriteria() {
            return criteria;
        }

        public List<DmFuncDefineCriterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new DmFuncDefineCriterion(condition));
        }

        protected void addCriterion(String condition, Object value,
                String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmFuncDefineCriterion(condition, value));
        }

        protected void addCriterion(String condition, Object value,
                String property, int likeType) {
            if (value == null) {
                throw new RuntimeException("Value for " + property
                        + " cannot be null");
            }
            criteria.add(new DmFuncDefineCriterion(condition, value, likeType));
        }

        protected void addCriterion(String condition, Object value1,
                Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property
                        + " cannot be null");
            }
            criteria.add(new DmFuncDefineCriterion(condition, value1, value2));
        }

        public DmFuncDefineCriteria andCriterionEqualTo(String criterion) {
            if (StringUtils.isBlank(criterion)) {
                criterion = "1=1";
            }
            addCriterion(criterion);
            return (DmFuncDefineCriteria) this;
        }
        public DmFuncDefineCriteria andFuncIdIsNull() {
            addCriterion("FUNC_ID is null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdIsNotNull() {
            addCriterion("FUNC_ID is not null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdEqualTo(Integer value) {
            addCriterion("FUNC_ID =", value, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdNotEqualTo(Integer value) {
            addCriterion("FUNC_ID <>", value, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdGreaterThan(Integer value) {
            addCriterion("FUNC_ID >", value, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("FUNC_ID >=", value, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdLessThan(Integer value) {
            addCriterion("FUNC_ID <", value, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdLessThanOrEqualTo(Integer value) {
            addCriterion("FUNC_ID <=", value, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdLike(Integer value) {
            addCriterion("FUNC_ID like ", value, "FUNC_ID", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdNotLike(Integer value) {
            addCriterion("FUNC_ID  not like ", value, "FUNC_ID", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdLeftLike(Integer value) {
            addCriterion("FUNC_ID like ", value, "FUNC_ID", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdNotLeftLike(Integer value) {
            addCriterion("FUNC_ID  not like ", value, "FUNC_ID", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdRightLike(Integer value) {
            addCriterion("FUNC_ID like ", value, "FUNC_ID", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdNotRightLike(Integer value) {
            addCriterion("FUNC_ID  not like ", value, "FUNC_ID", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdIn(List<Integer> values) {
            addCriterion("FUNC_ID  in ", values, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdNotIn(List<Integer> values) {
            addCriterion("FUNC_ID not in ", values, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdBetween(Integer value1, Integer value2) {
            addCriterion("FUNC_ID between ", value1, value2, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncIdNotBetween(Integer value1, Integer value2) {
            addCriterion("FUNC_ID not between ", value1, value2, "FUNC_ID");
            return (DmFuncDefineCriteria) this;
        }
        public DmFuncDefineCriteria andSystemIdIsNull() {
            addCriterion("SYSTEM_ID is null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdIsNotNull() {
            addCriterion("SYSTEM_ID is not null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdEqualTo(Integer value) {
            addCriterion("SYSTEM_ID =", value, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdNotEqualTo(Integer value) {
            addCriterion("SYSTEM_ID <>", value, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdGreaterThan(Integer value) {
            addCriterion("SYSTEM_ID >", value, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("SYSTEM_ID >=", value, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdLessThan(Integer value) {
            addCriterion("SYSTEM_ID <", value, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdLessThanOrEqualTo(Integer value) {
            addCriterion("SYSTEM_ID <=", value, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdLike(Integer value) {
            addCriterion("SYSTEM_ID like ", value, "SYSTEM_ID", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdNotLike(Integer value) {
            addCriterion("SYSTEM_ID  not like ", value, "SYSTEM_ID", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdLeftLike(Integer value) {
            addCriterion("SYSTEM_ID like ", value, "SYSTEM_ID", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdNotLeftLike(Integer value) {
            addCriterion("SYSTEM_ID  not like ", value, "SYSTEM_ID", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdRightLike(Integer value) {
            addCriterion("SYSTEM_ID like ", value, "SYSTEM_ID", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdNotRightLike(Integer value) {
            addCriterion("SYSTEM_ID  not like ", value, "SYSTEM_ID", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdIn(List<Integer> values) {
            addCriterion("SYSTEM_ID  in ", values, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdNotIn(List<Integer> values) {
            addCriterion("SYSTEM_ID not in ", values, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdBetween(Integer value1, Integer value2) {
            addCriterion("SYSTEM_ID between ", value1, value2, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andSystemIdNotBetween(Integer value1, Integer value2) {
            addCriterion("SYSTEM_ID not between ", value1, value2, "SYSTEM_ID");
            return (DmFuncDefineCriteria) this;
        }
        public DmFuncDefineCriteria andFuncTypeIsNull() {
            addCriterion("FUNC_TYPE is null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeIsNotNull() {
            addCriterion("FUNC_TYPE is not null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeEqualTo(Integer value) {
            addCriterion("FUNC_TYPE =", value, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeNotEqualTo(Integer value) {
            addCriterion("FUNC_TYPE <>", value, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeGreaterThan(Integer value) {
            addCriterion("FUNC_TYPE >", value, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeGreaterThanOrEqualTo(Integer value) {
            addCriterion("FUNC_TYPE >=", value, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeLessThan(Integer value) {
            addCriterion("FUNC_TYPE <", value, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeLessThanOrEqualTo(Integer value) {
            addCriterion("FUNC_TYPE <=", value, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeLike(Integer value) {
            addCriterion("FUNC_TYPE like ", value, "FUNC_TYPE", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeNotLike(Integer value) {
            addCriterion("FUNC_TYPE  not like ", value, "FUNC_TYPE", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeLeftLike(Integer value) {
            addCriterion("FUNC_TYPE like ", value, "FUNC_TYPE", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeNotLeftLike(Integer value) {
            addCriterion("FUNC_TYPE  not like ", value, "FUNC_TYPE", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeRightLike(Integer value) {
            addCriterion("FUNC_TYPE like ", value, "FUNC_TYPE", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeNotRightLike(Integer value) {
            addCriterion("FUNC_TYPE  not like ", value, "FUNC_TYPE", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeIn(List<Integer> values) {
            addCriterion("FUNC_TYPE  in ", values, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeNotIn(List<Integer> values) {
            addCriterion("FUNC_TYPE not in ", values, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeBetween(Integer value1, Integer value2) {
            addCriterion("FUNC_TYPE between ", value1, value2, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncTypeNotBetween(Integer value1, Integer value2) {
            addCriterion("FUNC_TYPE not between ", value1, value2, "FUNC_TYPE");
            return (DmFuncDefineCriteria) this;
        }
        public DmFuncDefineCriteria andFuncNameIsNull() {
            addCriterion("FUNC_NAME is null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameIsNotNull() {
            addCriterion("FUNC_NAME is not null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameEqualTo(String value) {
            addCriterion("FUNC_NAME =", value, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameNotEqualTo(String value) {
            addCriterion("FUNC_NAME <>", value, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameGreaterThan(String value) {
            addCriterion("FUNC_NAME >", value, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameGreaterThanOrEqualTo(String value) {
            addCriterion("FUNC_NAME >=", value, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameLessThan(String value) {
            addCriterion("FUNC_NAME <", value, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameLessThanOrEqualTo(String value) {
            addCriterion("FUNC_NAME <=", value, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameLike(String value) {
            addCriterion("FUNC_NAME like ", value, "FUNC_NAME", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameNotLike(String value) {
            addCriterion("FUNC_NAME  not like ", value, "FUNC_NAME", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameLeftLike(String value) {
            addCriterion("FUNC_NAME like ", value, "FUNC_NAME", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameNotLeftLike(String value) {
            addCriterion("FUNC_NAME  not like ", value, "FUNC_NAME", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameRightLike(String value) {
            addCriterion("FUNC_NAME like ", value, "FUNC_NAME", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameNotRightLike(String value) {
            addCriterion("FUNC_NAME  not like ", value, "FUNC_NAME", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameIn(List<String> values) {
            addCriterion("FUNC_NAME  in ", values, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameNotIn(List<String> values) {
            addCriterion("FUNC_NAME not in ", values, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameBetween(String value1, String value2) {
            addCriterion("FUNC_NAME between ", value1, value2, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andFuncNameNotBetween(String value1, String value2) {
            addCriterion("FUNC_NAME not between ", value1, value2, "FUNC_NAME");
            return (DmFuncDefineCriteria) this;
        }
        public DmFuncDefineCriteria andStateIsNull() {
            addCriterion("STATE is null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateIsNotNull() {
            addCriterion("STATE is not null");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateEqualTo(String value) {
            addCriterion("STATE =", value, "STATE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateNotEqualTo(String value) {
            addCriterion("STATE <>", value, "STATE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateGreaterThan(String value) {
            addCriterion("STATE >", value, "STATE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateGreaterThanOrEqualTo(String value) {
            addCriterion("STATE >=", value, "STATE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateLessThan(String value) {
            addCriterion("STATE <", value, "STATE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateLessThanOrEqualTo(String value) {
            addCriterion("STATE <=", value, "STATE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateLike(String value) {
            addCriterion("STATE like ", value, "STATE", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateNotLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 1);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateLeftLike(String value) {
            addCriterion("STATE like ", value, "STATE", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateNotLeftLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 0);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateRightLike(String value) {
            addCriterion("STATE like ", value, "STATE", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateNotRightLike(String value) {
            addCriterion("STATE  not like ", value, "STATE", 2);
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateIn(List<String> values) {
            addCriterion("STATE  in ", values, "STATE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateNotIn(List<String> values) {
            addCriterion("STATE not in ", values, "STATE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateBetween(String value1, String value2) {
            addCriterion("STATE between ", value1, value2, "STATE");
            return (DmFuncDefineCriteria) this;
        }

        public DmFuncDefineCriteria andStateNotBetween(String value1, String value2) {
            addCriterion("STATE not between ", value1, value2, "STATE");
            return (DmFuncDefineCriteria) this;
        }

    }

    public static class DmFuncDefineCriteria extends GeneratedCriteria {

        protected DmFuncDefineCriteria() {
            super();
        }
    }

    public static class DmFuncDefineCriterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected DmFuncDefineCriterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }
        protected DmFuncDefineCriterion(String condition, Object value, int likeType) {
            this.condition = condition;
            if (likeType == 0) {
                this.value = "%" + value;
            }
            else if (likeType == 1) {
                this.value = "%" + value + "%";
            }
            else {
                this.value = value + "%";
            }
            this.typeHandler = null;
            this.singleValue = true;

        }

        protected DmFuncDefineCriterion(String condition, Object value,
                String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            }
            else {
                this.singleValue = true;
            }
        }

        protected DmFuncDefineCriterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected DmFuncDefineCriterion(String condition, Object value,
                Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected DmFuncDefineCriterion(String condition, Object value,
                Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}